Skip to content

Loosen NumPy version requirement to allow version 2#763

Merged
mhucka merged 3 commits into
masterfrom
mh-allow-np2
Jun 13, 2025
Merged

Loosen NumPy version requirement to allow version 2#763
mhucka merged 3 commits into
masterfrom
mh-allow-np2

Conversation

@mhucka
Copy link
Copy Markdown
Collaborator

@mhucka mhucka commented Jun 12, 2025

Set the min version of NumPy to 1.26 and allow NumPy 2.

Comment thread requirements.txt
numpy~=1.16
pybind11
numpy>=1.26.0
pybind11[global]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the global signify? Is that because we added platform dependent stuff in the other PRs?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dstrain115 The global option makes it include pybind11 CMake files in a location accessible from a more standard system location. In addition to going into $VIRTUAL_ENV/lib/python3.9/site-packages/pybind11/share/cmake, it goes into $VIRTUAL_ENV/share/cmake. This makes it possible for CMake to find them on some platforms (I think Windows was the problematic one).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth a one-line comment to explain this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense. I'll do that.

@mhucka mhucka merged commit 2251abc into master Jun 13, 2025
13 of 18 checks passed
@mhucka mhucka deleted the mh-allow-np2 branch June 13, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants